package cn.saltybe.analysis.service;

import cn.saltybe.analysis.entity.data.NewHouse;

import java.util.List;

public interface NewHouseService {
    public void createTable() throws Exception;
    public int insert(NewHouse newHouse) throws Exception;
    public int delete(int id) throws Exception;
    public int update(NewHouse newHouse) throws Exception;
    public List<NewHouse> all() throws Exception;
    public List<NewHouse> all(int offset) throws Exception;
    public List<NewHouse> all(int offset, int limit) throws Exception;
    public NewHouse get(String typeId) throws Exception;
    public NewHouse get(int id) throws Exception;
    public List<NewHouse> get(int[] id) throws Exception;
    public boolean has(String typeId);
    public boolean has(int id);
    public List<NewHouse> query(String search, int offset, int limit) throws Exception;
    public int count(String search) throws Exception;
}
